<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>渲染函数</title>
    <script src="../js/vue.js"></script>
</head>
<body>


<div id="app">
    <anchored-heading :level="1">Hello world!</anchored-heading>



</div>
<script>
    Vue.component('render3', {
        props: ['value'],
        render: function (createElement) {
            var self = this;
            return createElement('input', {
                domProps: {
                    value: self.value
                },
                on: {
                    input: function (event) {
                        self.$emit('input', event.target.value)
                    }
                }
            })

        }
    });


    
</script>
</body>
</html>
